/*
 * @Author: new-wang
 * @Date: 2025-05-09 15:06:09
 * @LastEditors: new-wang
 * @LastEditTime: 2025-05-09 15:16:36
 * @FilePath: \v3bbs\src\stores\basic.ts
 * @Description:
 */
import { defineStore } from "pinia";

export const useBasicStore = defineStore('basic', {
  state: () => {
    return {
      // user info
      token: '',
      getUserInfo: false,
      //axios req collection
      axiosPromiseArr: [] as { url: string; cancel: (message?: string) => void }[],
    }
  },
  actions: {
    setToken(token: string) {
      this.token = token
    },
  }
})
